"""
@name : zuoye
@author : wangaokang
@projectname: 2021-07-26zuoye
"""
# import requests,re
# #
# url = 'https://www.sanchuangedu.cn/'
# src_url = requests.get('https://www.sanchuangedu.cn/')
#
# ret = re.findall(r"(?<=src=\").+\.jpg|(?<=src=\").+\.png|(?<=url\().+\.jpg",src_url.text)
# print(ret)
# j = 0
# for i in ret:
#     j +=1
#     z = requests.get(url + i)
#     z1= z.content
#     with open(rf'G:\python代码\2021-07-26zuoye\tupian\图{j}.jpg','wb+',) as fp:
#         fp.write(z1)
#         fp.close()

# <img src="/upload/infomation/20200403015315782.jpg" alt="">
# <img src="/upload/infomation/20200426104953530.jpg" alt="">
# <a href="/"><img src="/static/website/images/logo_sctl.png" alt=""></a>
# <li style="background-image:url(/upload/banner/Python%E8%AF%BE%E7%A8%8B01.jpg);"></li>

import re
msg = "san chuang tong le, welcom ,'hello world', learn python"
ret = re.findall(r"(?<!\')\b\w+\b(?!\')",msg)
ret1 = re.findall(r"(?<=\').+(?=\')",msg)
print(ret+ret1)
# msg = re.sub(' ',',' ,msg)
# print(msg)
# ret1 = re.split(r'[?|,]',msg)
# print(ret1)
# ret = re.compile(r',|\s')
# s = ret.split(msg)
# print(s)